package com.client.koshercook.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;
/** structure to save all the recipe information */
public class RecipeDetails implements IsSerializable{
	public String instructions;
	public String ingredients;
	public int grade;
	public List<String> ings;
	public List<String> comments;
	public List<String> ingsPic;
	public int cookTime;
	
	public RecipeDetails(){
		instructions = null;
		ingredients = null;
		grade = 0;
		ings = new ArrayList<String>();
		comments = new ArrayList<String>();
		ingsPic = new ArrayList<String>();
		cookTime = 0;
	}
	
	public RecipeDetails(String instructions, String ingredients, int grade, int cookTime){
		this.instructions = instructions;
		this.ingredients = ingredients;
		this.grade = grade;
		ings = new ArrayList<String>();
		comments = new ArrayList<String>();
		ingsPic = new ArrayList<String>();
		this.cookTime = cookTime;
	}
	
	public void addIng(String ing){
		ings.add(ing);
	}
	
	public void addComments(List<String> comments){
		for(String s: comments)
			this.comments.add(s);
	}
	
	public void addPic(String pic){
		ingsPic.add(pic);
	}

}
